package sunyu.service.shiro;

import com.github.pagehelper.Page;
import sunyu.mapper.shiro.pojo.Resource;
import sunyu.mapper.shiro.pojo.Role;

import java.util.List;
import java.util.Map;

/**
 * 角色管理服务接口
 *
 * @author 孙宇
 */
public interface RoleService {
    Boolean insert(Role role,
                   String resourceIds);

    Boolean delete(String id);

    List<Role> select(Page page,
                      Map<String, Object> params);

    Long count(Map<String, Object> params);

    Boolean update(Role role,
                   String resourceIds);

    Role selectById(String id);

    String getResourceIds(String id);

    List<Resource> getResources(String roleId);
}
